/* 
 * File:   FileUtils.h
 * Author: enriqueantezana
 *
 * Created on 4 de junio de 2013, 17:39
 */

#ifndef FILEUTILS_H
#define	FILEUTILS_H

#include <ctime>
#include <cstdio>
#include <vector>
#include <string>

bool isFile(const char *path);

bool isDirectory(const char *path);

void createDirectory(const char* path);

tm * getLastModificationTimeAndDate(const char* path);

char* getSimpleName(const char* path);

void createDirectoriesFromPath(const char* path);

int countNumberOfSeparators(const char* path);

long getFileContentSize(FILE* file);

char* getFileContent(FILE* file);

void navigateDirectory(const char* path, std::vector<std::string>& outFiles);

const char* appendSlash(const char* path);

std::string backToRelativePath(std::string path);

#endif	/* FILEUTILS_H */

